﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Contato
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% String message = (String)ViewData["Message"];
       if (message == null)
       {
           using (Html.BeginForm())
           {%>
        <%: Html.ValidationSummary(true)%>

        <fieldset>
            <legend>Contato</legend>
            
            <div class="editor-label">
                <%: Html.Label("Nome: ")%>
                <%: Html.TextBox("nome")%>
            </div>
            <div class="editor-field">
                <%: Html.Label("Email: ")%>
                <%: Html.TextBox("email")%>
            </div>

            <div class="editor-field">
                <%: Html.Label("Mensagem: ")%>
                <%: Html.TextArea("mensagem","",15,58,null)%>
            </div>
            
            <p>
                <input type="submit" value="Enviar" />
            </p>
        </fieldset>

    <%  }
       }
       else
       { %>
            <div><%: message%></div>    
     <%} %>

</asp:Content>
